package com.kalix.ksh.record.biz;

import com.kalix.framework.core.impl.biz.GenericBizServiceImpl;
import com.kalix.framework.core.util.ConfigUtil;
import com.kalix.ksh.record.api.biz.IManagementObjectRecordBeanService;
import com.kalix.ksh.record.api.dao.IManagementObjectRecordBeanDao;
import com.kalix.ksh.record.api.model.ToInterface;
import com.kalix.ksh.record.entities.ManagementObjectRecordBean;

/**
 * Created by Wanghw on 2018/10/12.
 * 第一张图   右中
 *
 */
public class ManagementObjectRecordServiceImpl extends GenericBizServiceImpl<IManagementObjectRecordBeanDao, ManagementObjectRecordBean> implements IManagementObjectRecordBeanService {
    public ManagementObjectRecordServiceImpl(){

        super.init(ManagementObjectRecordBean.class.getName());
    }
    public static String wsIp = (String) ConfigUtil.getConfigProp("FREEBOARD_IP","config.ksh.portconf");
    public static String wsPort =(String)ConfigUtil.getConfigProp("FREEBOARD_PORT","config.ksh.portconf");


    public String insertAll() {
        String data= ToInterface.interfaceUtil("http://"+wsIp+":"+wsPort+"/om/statistics/category","");

        //JsonStatus jd = saveEntity(TP entity);
        return data;
    }
}
